package com.medica.ledproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * @author xiaona
 * @date 2024/6/13
 * @description TODO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dz_park_zha")
@Tag(name="DzParkZha对象", description="电闸表")
public class DzParkZha implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Schema(description = "电闸名称")
    private String name;
    @Schema(description = "电闸IP")
    private String ip;
    @Schema(description = "电闸状态  1：开 2：关")
    private int status;
    @Schema(description = "上次操作时间")
    private LocalDateTime lasttime;
    @Schema(description = "创建时间")
    private LocalDateTime createtime;
    @Schema(description = "更新时间")
    private LocalDateTime updatetime;
}
